home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / include / x11 / xfuncs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-11  |  2.0 KB  |  74 lines

  1. /*
  2.  * $XConsortium: Xfuncs.h,v 1.8 91/04/17 09:27:52 rws Exp $
  3.  *
  4.  * Copyright 1990 by the Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted, provided
  8.  * that the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising
  11.  * or publicity pertaining to distribution of the software without specific,
  12.  * written prior permission. M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  */
  17.  
  18. #ifndef _XFUNCS_H_
  19. #define _XFUNCS_H_
  20.  
  21. #include <X11/Xosdefs.h>
  22.  
  23. #ifndef __WATCOMC__
  24.  
  25. #ifdef X_USEBFUNCS
  26. void bcopy();
  27. void bzero();
  28. int bcmp();
  29. #else
  30. #if (__STDC__ && !defined(X_NOT_STDC_ENV) && !defined(sun) && !defined(macII)) || defined(SVR4) || defined(hpux) || defined(_IBMR2)
  31. #include <string.h>
  32.  
  33. /* check for previous definition of bxxxx - DMD 06/02/94 */
  34. #ifndef bcopy
  35. #define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
  36. #endif
  37. #ifndef bzero
  38. #define bzero(b,len) memset(b, 0, (size_t)(len))
  39. #endif
  40. #ifndef bcmp
  41. #define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len))
  42. #endif
  43.  
  44. #else
  45. #ifdef sgi
  46. #include <bstring.h>
  47. #else
  48. #ifdef SYSV
  49. #include <memory.h>
  50. #if defined(_XBCOPYFUNC) && !defined(macII)
  51. #define bcopy _XBCOPYFUNC
  52. #define _XNEEDBCOPYFUNC
  53. #endif
  54. void bcopy();
  55. #define bzero(b,len) memset(b, 0, len)
  56. #define bcmp(b1,b2,len) memcmp(b1, b2, len)
  57. #else /* bsd */
  58. void bcopy();
  59. void bzero();
  60. int bcmp();
  61. #endif /* SYSV */
  62. #endif /* sgi */
  63. #endif /* __STDC__ and relatives */
  64. #endif /* X_USEBFUNCS */
  65. #endif /* __WATCOMC__ */
  66.  
  67. #ifdef __WATCOMC__
  68. #define bcopy(a,b,c)       memcpy(b,a,c)
  69. #define bcmp(a,b,c)        memcmp(a,b,c)
  70. #define bzero(a,b)         memset(a,0,b)
  71. #endif
  72.  
  73. #endif /* _XFUNCS_H_ */
  74.